package com.relytosoft.mizar.media.common.entity.pojo.dto;

import com.relytosoft.dubhe.common.core.utils.BeanCopyUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wss
 * @version 1.0
 * @date 2022/6/15 10:58
 */
@ApiModel("报警对象dto")
public class AlarmDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "报警类型id")
    private Integer alarmTypeId;

    @ApiModelProperty(value = "设备id")
    private String cameraId;

    @ApiModelProperty(value = "设备名称")
    private String cameraName;

    @ApiModelProperty(value = "报警图片")
    private String alarmImg;

    @ApiModelProperty(value = "报警video")
    private String alarmVideo;

    @ApiModelProperty(value = "报警时间")
    private LocalDateTime alarmTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static AlarmDto buildAlarmDto(Object object) {
        AlarmDto alarmDto = new AlarmDto();
        BeanCopyUtils.copy(object, alarmDto);
        return alarmDto;
    }

    public Integer getAlarmTypeId() {
        return alarmTypeId;
    }

    public void setAlarmTypeId(Integer alarmTypeId) {
        this.alarmTypeId = alarmTypeId;
    }

    public String getCameraId() {
        return cameraId;
    }

    public void setCameraId(String cameraId) {
        this.cameraId = cameraId;
    }

    public String getCameraName() {
        return cameraName;
    }

    public void setCameraName(String cameraName) {
        this.cameraName = cameraName;
    }

    public String getAlarmImg() {
        return alarmImg;
    }

    public void setAlarmImg(String alarmImg) {
        this.alarmImg = alarmImg;
    }

    public String getAlarmVideo() {
        return alarmVideo;
    }

    public void setAlarmVideo(String alarmVideo) {
        this.alarmVideo = alarmVideo;
    }

    public LocalDateTime getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(LocalDateTime alarmTime) {
        this.alarmTime = alarmTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "AlarmDto{" +
                "alarmTypeId=" + alarmTypeId +
                ", cameraId='" + cameraId + '\'' +
                ", cameraName='" + cameraName + '\'' +
                ", alarmImg='" + alarmImg + '\'' +
                ", alarmVideo='" + alarmVideo + '\'' +
                ", alarmTime=" + alarmTime +
                ", remark='" + remark + '\'' +
                '}';
    }

}
